#include "CBL_Log.h"
#include <iostream>
#include <fstream>

CB_SUBNAMESPACE_START(Debug)

CLog::CLog(std::ostream* _pStreamOut)
: m_pFile(NULL)
, m_LogMode(LogModeDefault)
, m_MaxLogLevel(255)
{
	m_pOut = _pStreamOut;
}

// -------------------------------------------------------------------------------------------------

CLog::CLog(const char* _pFilename)
: m_LogMode(LogModeDefault)
, m_MaxLogLevel(255)
{	
	m_pFile = new std::ofstream(_pFilename);
	m_pOut = m_pFile;
}

// -------------------------------------------------------------------------------------------------

CLog::~CLog()
{
	delete m_pFile;
}

// -------------------------------------------------------------------------------------------------

void CLog::operator << (const std::ostream& _rOStream)
{
	//m_pOut << _rOStream;
}
	
// -------------------------------------------------------------------------------------------------

CB_SUBNAMESPACE_END